.filter-bar {
  background: #ffffff;
  padding: 20px;
  border-bottom: 1px solid #f0f0f0;
  position: sticky;
  top: 0;
  z-index: 100;

  // 搜索框
  &__search {
    display: flex;
    align-items: center;
    margin-bottom: 16px;
  }

  &__search-input {
    flex: 1;
    position: relative;
    margin-right: 12px;
  }

  &__input {
    width: 100%;
    height: 44px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 22px;
    padding: 0 20px;
    font-size: 16px;
    color: #333333;

    &::placeholder {
      color: #999999;
    }

    &:focus {
      border-color: #6697f5;
      background: #ffffff;
    }
  }

  &__clear {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #cccccc;
    border-radius: 50%;
  }

  &__clear-icon {
    font-size: 14px;
    color: #ffffff;
    line-height: 1;
  }

  &__search-btn {
    width: 44px;
    height: 44px;
    background: #6697f5;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  &__search-icon {
    font-size: 18px;
    color: #ffffff;
  }

  // 筛选按钮组
  &__filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }

  &__filter-btn {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    margin-right: 12px;
    margin-bottom: 8px;
    transition: all 0.3s ease;

    &--active {
      background: #e6f7ff;
      border-color: #6697f5;
      color: #6697f5;
    }
  }

  &__filter-text {
    font-size: 14px;
    color: #333333;
    margin-right: 4px;

    .filter-bar__filter-btn--active & {
      color: #6697f5;
    }
  }

  &__filter-arrow {
    font-size: 12px;
    color: #999999;
    transition: transform 0.3s ease;

    .filter-bar__filter-btn--active & {
      color: #6697f5;
      transform: rotate(180deg);
    }
  }

  &__reset {
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 20px;
    margin-left: auto;
  }

  &__reset-text {
    font-size: 14px;
    color: #666666;
  }

  // 活跃筛选条件
  &__active-filters {
    display: flex;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
  }

  &__active-tag {
    display: flex;
    align-items: center;
    background: #6697f5;
    padding: 6px 12px;
    border-radius: 16px;
    margin-right: 8px;
    margin-bottom: 8px;
  }

  &__active-tag-text {
    font-size: 12px;
    color: #ffffff;
    margin-right: 6px;
  }

  &__active-tag-close {
    font-size: 16px;
    color: #ffffff;
    line-height: 1;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
  }
} 